package service.impl;

import mapper.TbUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import po.TbUser;
import service.TbUserService;

@Transactional(propagation=Propagation.REQUIRED,isolation=Isolation.DEFAULT,timeout=5)
@Service("TbUserServiceImpl")
public class TbUserServiceImpl implements TbUserService{
	@Autowired
	TbUserMapper tbUserMapper;
	public TbUser getuserbyname(String name) {
		TbUser tbUser=tbUserMapper.getuserbyname(name);
		return tbUser;
	}

	public TbUser getuserbyid(Integer id) {
		TbUser tbUser=tbUserMapper.getuserbyid(id);
		return tbUser;
	}
	
	

}
